package com.zang.schema.observable.observer;

import java.util.Observable;
import java.util.Observer;

/**
 *
 * @author Zhang Qiang
 * @Date 2019/8/29 17:47
 */
public class WuZang implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        String res = String.valueOf(arg);
        switch (res){
            case "abo":
                System.out.println("WuZang very like");
                break;
            case "fw":
                System.out.println("WuZang not like");
                break;
            default:
                System.out.println("WuZang is nothing");
            break;
        }

    }
}
